$OpenBSD: patch-src_3rdparty_chromium_build_common_gypi,v 1.1.1.1 2016/12/25 14:13:19 zhuk Exp $
--- src/3rdparty/chromium/build/common.gypi.orig.port	Thu May 26 15:58:54 2016
+++ src/3rdparty/chromium/build/common.gypi	Sat Aug  6 12:04:38 2016
@@ -104,8 +104,8 @@
           'branding%': 'Chromium',
 
           'conditions': [
-            # Windows and Linux (including Chrome OS) use Aura and Ash.
-            ['OS=="win" or OS=="linux"', {
+            # Windows, OpenBSD and Linux (including Chrome OS) use Aura and Ash.
+            ['OS=="win" or OS=="linux" or OS=="openbsd"', {
               'use_ash%': 1,
               'use_aura%': 1,
             }],
@@ -225,13 +225,13 @@
             'toolkit_views%': 0,
           }],
 
-          # Enable HiDPI on Mac OS, Windows and Linux (including Chrome OS).
-          ['OS=="mac" or OS=="win" or OS=="linux"', {
+          # Enable HiDPI on Mac OS, Windows, OpenBSD and Linux (including Chrome OS).
+          ['OS=="mac" or OS=="win" or OS=="linux" or OS=="openbsd"', {
             'enable_hidpi%': 1,
           }],
 
-          # Enable Top Chrome Material Design on Chrome OS, Windows, and Linux.
-          ['chromeos==1 or OS=="win" or OS=="linux"', {
+          # Enable Top Chrome Material Design on Chrome OS, Windows, OpenBSD and Linux.
+          ['chromeos==1 or OS=="win" or OS=="linux" or OS=="openbsd"', {
             'enable_topchrome_md%': 1,
           }],
 
@@ -767,7 +767,7 @@
         }],
 
         # DBus usage.
-        ['OS=="linux" and embedded==0', {
+        ['(OS=="linux" or OS=="openbsd") and embedded==0', {
           'use_dbus%': 1,
         }, {
           'use_dbus%': 0,
@@ -879,8 +879,8 @@
         }],
 
         # Use GPU accelerated cross process image transport by default
-        # on linux builds with the Aura window manager
-        ['use_aura==1 and OS=="linux"', {
+        # on linux & OpenBSD builds with the Aura window manager
+        ['use_aura==1 and (OS=="linux" or OS=="openbsd")', {
           'ui_compositor_image_transport%': 1,
         }, {
           'ui_compositor_image_transport%': 0,
@@ -981,7 +981,7 @@
         # --help for more information. Meant to be overriden with GYP_DEFINES.
         # TODO(maruel): Remove the conditions as more configurations are
         # supported.
-        ['OS!="ios" and OS!="android" and chromeos==0', {
+        ['OS!="ios" and OS!="android" and chromeos==0 and OS!="openbsd"', {
           'test_isolation_mode%': 'check',
         }, {
           'test_isolation_mode%': 'noop',
@@ -997,7 +997,7 @@
         }, {
           'use_openmax_dl_fft%': 0,
         }],
-        ['OS=="win" or OS=="linux"', {
+        ['OS=="win" or OS=="linux" or OS=="openbsd"', {
             'enable_mdns%' : 1,
         }],
 
@@ -1616,7 +1616,7 @@
       ['OS=="win"', {
         'windows_driver_kit_path%': '$(WDK_DIR)',
       }],
-      ['os_posix==1 and OS!="mac" and OS!="ios"', {
+      ['os_posix==1 and OS!="mac" and OS!="ios" and OS!="openbsd"', {
         'conditions': [
           ['target_arch=="mipsel" or target_arch=="mips64el"', {
             'werror%': '',
@@ -3632,6 +3632,13 @@
     },
   },
   'conditions': [
+    ['OS=="openbsd"', {
+      'target_defaults': {
+        'cflags': [
+          '-Wno-unknown-warning-option',
+        ],
+      },
+    }],
     ['os_posix==1', {
       'target_defaults': {
         'ldflags': [
@@ -3946,13 +3953,13 @@
                     ],
                   }],
                 ],
-                'cflags': [
-                  '-m64',
-                  '-march=x86-64',
-                ],
-                'ldflags': [
-                  '-m64',
-                ],
+                #'cflags': [
+                #  '-m64',
+                #  '-march=x86-64',
+                #],
+                #'ldflags': [
+                #  '-m64',
+                #],
               }],
             ],
           }],
@@ -4711,9 +4718,9 @@
         ],
       },
     }],
-    # FreeBSD-specific options; note that most FreeBSD options are set above,
+    # BSD-specific options; note that most BSD options are set above,
     # with Linux.
-    ['OS=="freebsd"', {
+    ['OS=="freebsd" or OS=="openbsd"', {
       'target_defaults': {
         'ldflags': [
           '-Wl,--no-keep-memory',
